package com.wf.day_0614.test1;

/**
 * 饿汉式
 * 线程安全
 */
public class Singleton1 {
        private Singleton1() {
        }
        private static Singleton1 instance1 = new Singleton1();
        public  static Singleton1 getInstance() {

                return instance1;

        }

}